package com.neuedu.carsystem.service.impl;

import java.util.List;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.neuedu.carsystem.dao.CarDao;
import com.neuedu.carsystem.model.Car;
import com.neuedu.carsystem.service.CarService;
@Service
public class CarServiceImpl implements CarService {
    @Autowired 
    public CarDao carDao;
	@Override
	public List<Car> findCarAll(Map<String, Object> map) {
		// TODO Auto-generated method stub
		return carDao.findCarAll(map);
	}

	@Override
	public int addCar(Car u) {
		// TODO Auto-generated method stub
		return carDao.addCar(u);
	}

	@Override
	public int deleteCar(int id) {
		// TODO Auto-generated method stub
		return carDao.deleteCar(id);
	}

	@Override
	public int updateCar(int u) {
		// TODO Auto-generated method stub
		return carDao.updateCar(u);
	}

	@Override
	public int countCar() {
		// TODO Auto-generated method stub
		return carDao.countCar();
	}

	@Override
	public Car findById(int id) {
		// TODO Auto-generated method stub
		return carDao.findById(id);
	}

}
